let handler: null | number = null;

export default function(vars: Record<string, any>, setVar: Function) {
    if (handler === null) {
        handler = setInterval(() => {
            setVar("helloText", "Context-1-time: " + new Date().toLocaleString());
        })
    } else {
        clearInterval(handler);
        handler = null;
    }
}